package com.sc.nft.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author：LiGen
 * @Package：com.metago.sms.domain.req
 * @Project：meta-sms
 * @name：sendMessageOneReq
 * @Date：2024/3/19 13:50
 * @Filename：sendMessageOneReq
 */
@Data
@ApiModel("短信一对一发送请求参数")
public class SendMessageOneReq {

    @ApiModelProperty(name = "模板ID")
    Long templateId;

    @ApiModelProperty(name = "数组形式，包含多个JSON对象")
    List<SendMessageOneDataReq> messageOneSendList;

    public static SendMessageOneReq build(Long templateId,List<SendMessageOneDataReq> messageOneSendList){
        SendMessageOneReq sendMessageOneReq = new SendMessageOneReq();
        sendMessageOneReq.setTemplateId(templateId);
        sendMessageOneReq.setMessageOneSendList(messageOneSendList);
        return sendMessageOneReq;
    }

}
